package com.ruleengine.db.mapper;

import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruleengine.db.model.Rulechain;

/**
 * @author lianghanwei on 2024/3/15
 */
@Repository
public interface RulechainMapper extends BaseMapper<Rulechain> {

//    @Select('''
//        SELECT
//            tenant_id,
//        ruleengine_id,
//        rulechain_id,
//        name,
//        description,
//        resource_version,
//        state,
//        status,
//        client_token,
//        create_time,
//        update_time
//            FROM
//        rule_chain
//        WHERE
//            rulechain_id = @{rulechainId}
//        AND
//            tenant_id = @{tenantId}
//        AND
//            state != $_vars.rulechainStateCode.DELETED
//        ''')
//    Rulechain getRulechain(@Param("tenantId") String tenantId, @Param("rulechainId") String rulechainId);

}
